#百度网站的请求参数
baiduParams = {
    'all': '1',  # 请求返回所有相关数据
    'isIndex': 'false',  # 指定不是指数
    'isBk': 'false',  # 指定不包含备选方案
    'isBlock': 'false',  # 指定不包含区块
    'isStock': 'false',  # 指定不是股票
    'isFutures': 'true',  # 指定是期货
    'isForeign': 'false',  # 指定不是外国的
    #'code': variety['code'],  # 指定期货合约代码 SR505
    'stockType': 'ab',  # 指定股票类型
    'newFormat': '1',  # 指定新的数据格式
    'market_type': 'ab',  # 指定市场类型
    'group': 'quotation_futures_minute',  # 指定按分钟分组的报价
    'finClientType': 'pc'  # 指定金融客户端类型为PC
}
# 百度网站请求头
baiduHeaders = {
    'authority': 'finance.pae.baidu.com',
    'method': 'GET',
    'path': '/selfselect/getstockquotation?all=1&isIndex=false&isBk=false&isBlock=false&isStock=false&isFutures=true&isForeign=false&code=SR505&stockType=ab&newFormat=1&market_type=ab&group=quotation_futures_minute&finClientType=pc',
    'scheme': 'https',
    'accept': 'application/vnd.finance-web.v1+json',
    'accept-encoding': 'gzip, deflate, br',
    'accept-language': 'zh-CN,zh;q=0.9',
    'acs-token': '1735045316402_1735054506074_LHsZwKbaacezIG+DIBqbQhXoYY/9Zh35uvpq7uz+vFosrfytWghqGkYiu3hpN+YRARwjnefdZYi0bg11oGQEK/aBmlCGIp7eizM7lUjD48tHtLktmbohDYhbOAhdXLPu2sk7lIojqQAlRJKXq4pk7BokTS6HX6tvZ20YXBwzdOETkvjsa066ybM8xoFluqFi5DSpb+sCiIoMWGBz8Si0JRNyzK6sUjbTXiolsYd3E8zhVj+L7sQyoy0/gIHiJhZOXuxrsMpHwZWHN2IrPJTYcbXzQjJ1iOstSm9a8KFUR7kzM737iCdYXj2F7x+Z8oyjWWWWWfKozp3Eiw5L+Azik24lRMEoYvN6KNBjcaHo0yZuz15H45a9RVqvFwIl6egOpQ3JO86oYvl6S/l0B/rctnnayTTAVMoRxq/67R55HK4=',  # 请替换为您的实际acs-token值
    'cookie': 'BDUSS=lk1NVlpTXg2M2s0a3Z5RGRhSXozZXBKLUp4T3UzWUhXelp-OG9yMjhPLVhHVmhuRUFBQUFBJCQAAAAAAAAAAAEAAADRlvUGuuzC7cH6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJeMMGeXjDBnW; BDUSS_BFESS=lk1NVlpTXg2M2s0a3Z5RGRhSXozZXBKLUp4T3UzWUhXelp-OG9yMjhPLVhHVmhuRUFBQUFBJCQAAAAAAAAAAAEAAADRlvUGuuzC7cH6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJeMMGeXjDBnW; PSTM=1731236052; BIDUPSID=A0C606C97D587109835E65C5188ACBC7; BAIDUID=B634B85676134ADD509F600C08EC1D3F:SL=0:NR=10:FG=1; H_WISE_SIDS=61027_61055_60853_61099_61128_61114_61140_61156; H_PS_PSSID=61027_61156_61238_60853_61367_61393_61388_61416_61435_61440_61445_61430_61496_61527_61523_61362; BA_HECTOR=818l2h8la1040hala00k24058ejn4c1jmll4g1u; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; BAIDUID_BFESS=B634B85676134ADD509F600C08EC1D3F:SL=0:NR=10:FG=1; ZFY=rjXrB93WTHL16zMIffixuBgp92cXj98xY6HMyN2eUrY:C; BDRCVFR[feWj1Vr5u3D]=I67x6TjHwwYf0; delPer=0; PSINO=1; ab_sr=1.0.1_ZDg4NTUwMDUzNmY4NGY3YTIyYWJjNzRjNjljZTZiZDJkNmU2MWIzNzYzMTUwNWI0MDdjMGNhNjFjYjFhOTQ1NmQyNGQ3ZmRjNTU0YWQ0Mzg0ZTc3MzYxODhmOTFjMjk4MzBhZjcyOGM0MWY1YWE0YTdkMGMyNTRhZWQzZWViNWMzYzRjYzk4ZjFjYWVkM2E1YWVjYjFlYjE5ODdhNWRmZA==',  # 请替换为您的实际cookie值
    'origin': 'https://gushitong.baidu.com',
    'referer': 'https://gushitong.baidu.com/',
    'sec-ch-ua': '";Not A Brand";v="99", "Chromium";v="94"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    'sec-fetch-dest': 'empty',
    'sec-fetch-mode': 'cors',
    'sec-fetch-site': 'same-site',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36 SE 2.X MetaSr 1.0'
}

